<?php
/**
 * | ---------------------------------------------------------------------------------------------------
 * | Author：johnxu <fsyzxz@163.com>.
 * | ---------------------------------------------------------------------------------------------------
 * | Home: https://www.johnxu.net.
 * | ---------------------------------------------------------------------------------------------------
 * | Data: 2018/12/31
 * | ---------------------------------------------------------------------------------------------------
 * | Desc: 异步毫秒定时器
 * | ---------------------------------------------------------------------------------------------------
 */

swoole_timer_tick( 3000, function () {
    echo "after 3000ms.\n";
    swoole_timer_after( 14000, function () {
        echo "after 14000ms.\n";
    } );

} );
